#pragma once

class Emitter;

class Particle
{
	Emitter* m_Emitter;
	
public:

	float PosX, PosY, PosZ;
	float VelX, VelY, VelZ;
	float Scale;
	float LifeTime;

	float Ave_X, Ave_Y, Ave_Z;
	float Ave_Scale;



	Particle(Emitter* emitter);
	~Particle(void);

	Particle(Emitter* emitter, float X, float Y, float Z, float velX, float velY, float velZ, float scale = 1, float lifetime = 1);

	void Update(float elapsedTime, bool time = false, bool circle = false);

	void SetEmitter(Emitter* emitter) { m_Emitter = emitter; }

	void Render(void);

	void SetAverages(void);
};

